import pandas as pd
excel_name = "/Users/daydaisy/Downloads/test.xlsx"
# 创建一个DataFrame
data = {'姓名': ['Bob', 'Alice'], '年龄': [30, 25]}
df = pd.DataFrame(data)

# 将DataFrame写入Excel文件
df.to_excel(excel_name, index=False)
